// 审核状态
export const ReviewStatus = {
    PENDING: 0,
    APPROVED: 1,
    REJECTED: 2,
} as const

export const ReviewStatusText = {
    [ReviewStatus.PENDING]: '待审核',
    [ReviewStatus.APPROVED]: '已通过',
    [ReviewStatus.REJECTED]: '已拒绝',
} as const

// 空间级别
export const SpaceLevel = {
    NORMAL: 0,
    ADVANCED: 1,
    PREMIUM: 2,
} as const

export const SpaceLevelText = {
    [SpaceLevel.NORMAL]: '普通版',
    [SpaceLevel.ADVANCED]: '高级版',
    [SpaceLevel.PREMIUM]: '至尊版',
} as const

// 空间类型
export const SpaceType = {
    PRIVATE: 0,
    TEAM: 1,
} as const

export const SpaceTypeText = {
    [SpaceType.PRIVATE]: '私有空间',
    [SpaceType.TEAM]: '团队空间',
} as const

// 空间用户角色
export const SpaceUserRole = {
    OWNER: 'owner',
    EDITOR: 'editor',
    VIEWER: 'viewer',
} as const

export const SpaceUserRoleText = {
    [SpaceUserRole.OWNER]: '所有者',
    [SpaceUserRole.EDITOR]: '编辑者',
    [SpaceUserRole.VIEWER]: '查看者',
} as const

// 用户角色
export const UserRole = {
    USER: 'user',
    ADMIN: 'admin',
} as const

export const UserRoleText = {
    [UserRole.USER]: '普通用户',
    [UserRole.ADMIN]: '管理员',
} as const

// 用户状态
export const UserStatus = {
    DISABLED: 0,
    NORMAL: 1,
} as const

export const UserStatusText = {
    [UserStatus.DISABLED]: '禁用',
    [UserStatus.NORMAL]: '正常',
} as const

// 加入状态
export const JoinStatus = {
    PENDING: 0,
    JOINED: 1,
    REJECTED: 2,
} as const

export const JoinStatusText = {
    [JoinStatus.PENDING]: '待审核',
    [JoinStatus.JOINED]: '已加入',
    [JoinStatus.REJECTED]: '已拒绝',
} as const

